﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace WPFTest
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
        }

        private void Grid_PreviewMouseDown(object sender, MouseButtonEventArgs e)
        {
            MessageBox.Show(e.Source.ToString());
            MessageBox.Show("Grid_PreviewMouseDown");
        }

        private void Window_MouseDown(object sender, MouseButtonEventArgs e)
        {
            MessageBox.Show("Window_MouseDown");
        }

        private void stackPanel1_PreviewMouseDown(object sender, MouseButtonEventArgs e)
        {
            //MessageBox.Show("stackPanel1_PreviewMouseDown");
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            //MessageBox.Show("button1_Click");
        }

        private void Window_MouseDown_1(object sender, MouseButtonEventArgs e)
        {
            //MessageBox.Show("Window_MouseDown_1");
        }

        private void Grid_Click(object sender, RoutedEventArgs e)
        {
            //MessageBox.Show("LEGIT!!");
            CommandBinding x = new CommandBinding();
        }

        private void Grid_MouseDown(object sender, MouseButtonEventArgs e)
        {
            //MessageBox.Show("LEGITER!!");
        }

        private void ellipse1_MouseDown(object sender, MouseButtonEventArgs e)
        {
            MessageBox.Show("DANG");
        }

        private void ellipse1_Click(object sender, RoutedEventArgs e)
        {
            MessageBox.Show("TRUE");
        }

        private void Grid_MouseDown_1(object sender, MouseButtonEventArgs e)
        {
            MessageBox.Show("FLAT!");
        }

        private void ellipse1_PreviewMouseDown(object sender, MouseButtonEventArgs e)
        {
            MessageBox.Show("ellipse1_PreviewMouseDown");
        }
    }
}
